package com.iespring.controller.app.topic;

import com.iespring.bean.common.BasePageInfo;
import com.iespring.bean.common.BaseRespVo;
import com.iespring.service.app.topic.WxTopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author:ZhangShuPeng
 * @Date:2023/01/02/13:35
 * @Description:
 */
@RestController
@RequestMapping("wx/topic")
public class WxTopicController {

    @Autowired
    WxTopicService wxTopicService;

    @RequestMapping("list")
    public BaseRespVo list(int page, int limit) {

        BaseRespVo baseRespVo = wxTopicService.list(page, limit);
        return baseRespVo;

    }

    @RequestMapping("detail")
    public BaseRespVo detail(int id) {

        BaseRespVo baseRespVo = wxTopicService.detail(id);
        return baseRespVo;

    }

    @RequestMapping("related")
    public BaseRespVo related(int id) {

        BaseRespVo baseRespVo = wxTopicService.related(id);
        return baseRespVo;

    }
}
